home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / stime.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. STIME(3)            MINTLIB LIBRARY FUNCTIONS            STIME(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        stime - set time
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <unistd.h>
  12.  
  13.        int stime(long *tp);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        stime  sets  the  system's  idea  of the time and date. tp
  17.        points to the value of time as measured  in  seconds  from
  18.        00:00:00 GMT January 1, 1970.
  19.  
  20. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  21.        t✓ti✓im✓me✓e(✓(3✓3)✓),✓, T✓Ts✓se✓et✓td✓da✓at✓te✓e(✓(2✓2)✓),✓, T✓Ts✓se✓et✓tt✓ti✓im✓me✓e(✓(2✓2)✓)
  22.  
  23. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  24.         0  on  success.   -1 on failure; errno is set to indicate
  25.        the error.
  26.  
  27. N✓NO✓OT✓TE✓E
  28.        On UN*X, only  the  super-user  may  call  this  function.
  29.        Under  the  current  version of MiNT and using the current
  30.        version of the mintlibs, any user is allowed to change the
  31.        system  time.   Don't rely on this behavior, as it will be
  32.        changed in the future.
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.